package com.group.eams.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group.eams.pojo.dto.*;
import com.group.eams.pojo.entity.AssetAllocate;
import com.group.eams.pojo.vo.*;

/**
* @author 恩哲欣
* @description 针对表【asset_allocate(资产调拨表)】的数据库操作Service
* @createDate 2024-10-29 16:09:34
*/
public interface AssetAllocateService extends IService<AssetAllocate> {
    Page<AssetAllocateListVo> findAssetAllocateByWhere(AssetAllocateQueryDto assetAllocateQueryDto);
    // 查询固有资产
    Page<AllocateFixedListVo> findAllocateFixedByWhere(FixedAssetQueryDto fixedAssetQueryDto);

    // 根据选择的id查询资产
    Page<AllocateFixedDetailListVo> addAllocateFixedDetail(AssetPartDto assetPartDto);

    // 根据查询到的asset_id查询资产列表
    Page<AllocateFixedDetailListVo> findAllocateFixedDetail(ApplyNumFixedAssetQueryDto applyNumFixedAssetQueryDto);

    // 根据申请单号删除
    int deleteByApplicationNum(BatchDeleteIdsDto batchDeleteIdsDto);

    // 根据申请单号和assetIds删除
    int updateByApplicationNum(BatchUpdateIdsDto<AssetAllocate> batchUpdateIdsDto);

    // 根据申请单号查询
    AssetAllocate findAllocateByNum(String applicationNum);
}
